from django.test import TestCase

# Create your tests here.


#继承的应用   兔子鸡子demo
# class Toushu():
#     jitou=1
#     tutou=1
#     def shuliang(self,num):
#         return self.jitou*num
#
# class Tuishu():
#     jitui=2
#     tutui=4
#     def tuishu(self,num):
#         return self.tutui*num

class Base():
    name="hanlei"
    def shu(self):
        return self.name

class Age():
    age=28
    def shuxing(self):
        return "年龄%s名字%s"%(self.age,self.name)

class Fan(Base,Age):
    # def xing(self):
    #     return "年龄%s名字%s" % (self.age, self.name)
    pass

f=Fan()
print(f.shuxing())
